var retunddetailsObj = {
    orderId : "",
    storeId : "",
    userId : "",
    init:function () {
        this.orderId = publicObj.getUrlData("oriderid");
        this.storeId = publicObj.getUrlData("storeId");
        this.userId = publicObj.getUrlData("sUserId");
        this.getRefundDetail();
    },
    getRefundDetail:function () {
        publicObj.showLoad();
        var reqType = "POST";
        var isAsync = true;
        var dataType = "json";
        var reqUrl = ruquireObj.urlPrefix+'returnorderservice/getreturnorderschedulebyorderid';
        var reqBody={};
        reqBody.orderId = this.orderId;
        reqBody.storeId = this.storeId;
        reqBody.userId = this.userId;
        publicObj.myAjax(this,this.getRefundDetailRe,reqUrl,reqBody,reqType,isAsync,dataType);
    },
    getRefundDetailRe: function (res, obj) {
        console.log(res);
        if (res.return.nCode == 0) {
            var reData = res.response;
            var returnLogList = res.response.returnLogList;
            $(".schedule").hide();
            if(returnLogList.length == 1){

            }else if(returnLogList.length == 2){
                $(".line2").hide();
            }else if(returnLogList.length == 3){
                $(".line3").hide();
            }else if(returnLogList.length == 4){

            }
            $(".retuntxt").html(reData.returnTotalVal);
            for(var i=0;i<returnLogList.length;i++){
                //isshow0 showTit0 showTime0 showCenter0
                $(".showTit"+i).html(returnLogList[i].title);
                $(".showTime"+i).html(returnLogList[i].operateTime);
                $(".showCenter"+i).html(returnLogList[i].content);
                $(".isshow"+i).show();
            }
            $(".top").show();
            $(".schedulelist").show();
        }else {
            publicObj.myalert(res.return.strText);
        }
        publicObj.hideLoad();
    }
};
retunddetailsObj.init();